<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<base href="<%=basePath%>admin/process/greenTea/">

<title>录入杀青信息</title>
<style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
}
.STYLE1 {font-size: 12px}
.STYLE4 {
	font-size: 12px;
	color: #1F4A65;
	font-weight: bold;
}

tr{
height::24px;
}
a:link {
	font-size: 12px;
	color: #06482a;
	text-decoration: none;

}
a:visited {
	font-size: 12px;
	color: #06482a;
	text-decoration: none;
}
a:hover {
	font-size: 12px;
	color: #FF0000;
	text-decoration: underline;
}
a:active {
	font-size: 12px;
	color: #FF0000;
	text-decoration: none;
}
.STYLE7 {font-size: 12}

-->
</style>
<script src="../js/jquery-1.3.1.min.js" type="text/javascript" />
<script>
var  highlightcolor='#eafcd5';
//此处clickcolor只能用win系统颜色代码才能成功,如果用#xxxxxx的代码就不行,还没搞清楚为什么:(
var  clickcolor='#51b2f6';
function  changeto(){
source=event.srcElement;
if  (source.tagName=="TR"||source.tagName=="TABLE")
return;
while(source.tagName!="TD")
source=source.parentElement;
source=source.parentElement;
cs  =  source.children;
//alert(cs.length);
if  (cs[1].style.backgroundColor!=highlightcolor&&source.id!="nc"&&cs[1].style.backgroundColor!=clickcolor)
for(i=0;i<cs.length;i++){
	cs[i].style.backgroundColor=highlightcolor;
}
}

function  changeback(){
if  (event.fromElement.contains(event.toElement)||source.contains(event.toElement)||source.id=="nc")
return
if  (event.toElement!=source&&cs[1].style.backgroundColor!=clickcolor)
//source.style.backgroundColor=originalcolor
for(i=0;i<cs.length;i++){
	cs[i].style.backgroundColor="";
}
}

function  clickto(){
source=event.srcElement;
if  (source.tagName=="TR"||source.tagName=="TABLE")
return;
while(source.tagName!="TD")
source=source.parentElement;
source=source.parentElement;
cs  =  source.children;
//alert(cs.length);
if  (cs[1].style.backgroundColor!=clickcolor&&source.id!="nc")
for(i=0;i<cs.length;i++){
	cs[i].style.backgroundColor=clickcolor;
}
else
for(i=0;i<cs.length;i++){
	cs[i].style.backgroundColor="";
}
}



</script>
<script type="text/javascript">
var flag = 1;
function add(){
  var text =  $("#text1").val();
  var des;
  if(flag==1) {des = text; flag = 0;}
  else {des = $("#textarea1").val()+","+text;}
  $("#textarea1").attr("value",des);
  $("#text1").attr("value",'');
}
</script>
</head>

<body>
<%
String id = request.getParameter("materialpackageid");
System.out.print("页面传过来的参数值："+request.getParameter("materialpackageid"));
%>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td height="30"><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="15" height="30"><img src="../../tab/images/tab_03.gif" width="15" height="30" /></td>
        <td width="1101" background="../../tab/images/tab_05.gif"><img src="../../tab/images/001.gif" width="16" height="16" /> <span class="STYLE4">录入杀青信息</span></td>
        <td width="281" background="../../tab/images/tab_05.gif">&nbsp;</td>
        <td width="14"><img src="../../tab/images/tab_07.gif" width="14" height="30" /></td>
      </tr>
    </table></td>
  </tr>
  <!-- 
  <tr>
  <td width="9" background="../../tab/images/tab_12.gif">&nbsp;</td>
  <td bgcolor="#f3ffe3" class="STYLE1"><a href="#" onClick="history.back(); return false;">返回上一步</a></td>
  </tr>
   -->
  <tr>
    <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="9" background="../../tab/images/tab_12.gif">&nbsp;</td>
        <td bgcolor="#f3ffe3" class="STYLE1">
		<!-- 添加内容 -->
    	<form action="GreenTeaProcess_AddKilloutStatus.action" method="post">
    		<table width="60%" border="0" align="center"  bgcolor="" onmouseover="changeto()"  onmouseout="changeback()">
				<tr>
					<td height="28" colspan="4">&nbsp;&nbsp; </td>
				</tr>
    			<tr hheight="24">   
    				<td width="15%"  align="right">人员：</td>
    				<td width="35%" height="24">
    				<input type="text" name="people"/><br />
				    </td>
    				<td width="10%"  align="right">设备：</td>
    				<td width="35%" height="24">
	    				<input type="text" name="device"/><br />
				    </td>
    			</tr>
    			<tr>
    				<td width="15%" height="24" align="right">时间：</td>
    				<td width="35%">
    					<input type="text" name="ks.time"/>
    				</td>
    				<td width="10%" height="24" align="right">色泽：</td>
    				<td width="35%">
    					<input type="text" name="ks.color"/>
    				</td>
    			</tr>
    			<tr>
    				<td width="15%" height="24" align="right">形状：</td>
    				<td width="35%">
    					<input type="text" name="ks.shape"/>
    				</td>
    				<td width="10%" height="24" align="right">含水量：</td>
    				<td width="35%">
    					<input type="text" name="ks.watercontent"/>
    				</td>
    			</tr>
    			<tr>
    				<td width="15%" height="24" align="right">含P量：</td>
    				<td width="35%">
    					<input type="text" name="ks.pcontent"/>
    				</td>
    				<td width="10%" height="24" align="right">含K量：</td>
    				<td width="35%">
    					<input type="text" name="ks.kcontent"/>
    				</td>
    			</tr>
    			<tr>
    				<td width="15%" align="right" height="24">描述：</td>
    				<td width="90%" colspan="3"><textarea name="ks.description" rows="3" cols="55"></textarea></td>
    			</tr>
    			<tr>
    			   <td>
    			   <input type="hidden" name="materialpackageid"  value="<%=id%>" />
    			   </td>
    			</tr>
    		<!-- 	<tr>
    				
    				<td align="center" colspan="4"><h3>茶&nbsp;包&nbsp;编&nbsp;号</h3> </td>
    			</tr>
    			<tr>
    				<td align="right" width="15%">茶包编号：</td><td colspan="3">
    				<input type="text"  id="text1"/>&nbsp;&nbsp;&nbsp; <input type="button" value="增加" onclick="add();"/> </td>
    			</tr>
    			<tr>
    				<td align="right" width="15%">编号列表：</td>
    				<td width="90%" colspan="3">
    					<textarea rows="4" cols="55" id="textarea1"></textarea>
    				</td>
    			</tr> -->
    		</table>
    		<br/>
			<div align="center">
				<input type="submit" class="button" value="确定" />
				<input type="reset" value="重置" />
				<input type="button" value="返回" onClick="history.back(); return false;" />
			</div>
    	</form>
		</td>
		<td width="9" background="../../tab/images/tab_16.gif">&nbsp;</td>
	</tr></table>
	</td>
  </tr>
  <tr>
    <td height="29"><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="15" height="29"><img src="../../tab/images/tab_20.gif" width="15" height="29" /></td>
        <td background="../../tab/images/tab_21.gif"><div align="right">&nbsp;</div>
		</td>
        <td width="14"><img src="../../tab/images/tab_22.gif" width="14" height="29" /></td>
      </tr>
    </table></td>
  </tr>
</table>
</body></html>